#include <stdio.h>

#define COVERAGE 350 // 每罐油漆可刷的面积（单位：平方英尺）

int main(void)
{
    int sq_feet;
    int cans;
    printf("输入要绘制的平方英尺数:\n");
    while (scanf("%d", &sq_feet) == 1)
    {
        cans = sq_feet / COVERAGE;
        // 三元运算符
        cans += ((sq_feet % COVERAGE == 0)) ? 0 : 1;
        printf("You need %d %s of paint.\n", cans, cans == 1 ? "can" : "cans");
        printf("Enter next value (q to quit):\n");
    }
    return 0;
}
